package com.team.service;

import com.team.entity.News;
import com.team.vo.Result;
import com.team.vo.SearchContent;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author keluoyisi
 * @program: seven
 * @description: 上下文的业务层接口
 * @date 2022-10-18 00:47:33
 */
public interface NewsUpAndDownService {
    /**
     * @param :
     * @return Result
     * @description 获取到所有的新闻
     */
    Result selectAllNews(int currentPage, int pageSize, SearchContent searchContent);

    /**
     * @param id:
     * @param status:
     * @return Result
     * @description 修改新闻的上下架
     */
    Result upUpdate(int id,int status);

    /**
     * @param id:
     * @param uppid:
     * @return Result
     * @description 修改新闻的置顶和取消置顶
     */
    Result topUpdate(int id,int uppid);
}
